RichTextBox for WinRT
GetOffsetToPosition(C1TextPointer,Predicate<Tag>) Method


A C1TextPointer that specifies a position to find the distance (in symbols) to.
A predicate that can be called to check if a Tag should count as offset. The predicate should return true iff the tag doesn't count. Can be null, which means no filter.
Returns the count of symbols between this C1TextPointer and a second specified C1TextPointer.
Syntax
'Declaration
 
Public Overloads Function GetOffsetToPosition( _
   ByVal position As C1TextPointer, _
   ByVal tagFilter As System.Predicate(Of Tag) _
) As System.Integer
'Usage
 
Dim instance As C1TextPointer
Dim position As C1TextPointer
Dim tagFilter As System.Predicate(Of Tag)
Dim value As System.Integer
 
value = instance.GetOffsetToPosition(position, tagFilter)
public System.int GetOffsetToPosition( 
   C1TextPointer position,
   System.Predicate<Tag> tagFilter
)

Parameters

position
A C1TextPointer that specifies a position to find the distance (in symbols) to.
tagFilter
A predicate that can be called to check if a Tag should count as offset. The predicate should return true iff the tag doesn't count. Can be null, which means no filter.

Return Value

The relative number of symbols between the current C1TextPointer and position. A negative value indicates that the current C1TextPointer follows the position specified by position, 0 indicates that the positions are equal, and a positive value indicates that the current C1TextPointer precedes the position specified by position.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1TextPointer Class
C1TextPointer Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback